package com.evision.webcrawler.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by wangys on 17-9-27.
 * 查询返回的结果集
 */
public class Result implements Serializable{
    private static final long serialVersionUID = 1731704536977372192L;
    private Integer id;  //id
    private String url;  //url
    private String platform; //平台
    private Integer type; // 0 1 2 3
    private Integer tortCount;  //侵权数
    private String similarityDegree; // 相似度
    private String describe;  //  描述
    private Integer manageId;
    private Integer taskId;  // 任务id
    @JSONField(format = "yyyy-MM-dd")
    private Date collectionTime;
    private String imgUrl;
    private List<Result> resultList;

    public Result() {
    }

    public Result(Integer id, String url, String platform, Integer type, Integer tortCount, String similarityDegree, String describe, Integer manageId, Integer taskId, Date collectionTime, String imgUrl, List<Result> resultList) {
        this.id = id;
        this.url = url;
        this.platform = platform;
        this.type = type;
        this.tortCount = tortCount;
        this.similarityDegree = similarityDegree;
        this.describe = describe;
        this.manageId = manageId;
        this.taskId = taskId;
        this.collectionTime = collectionTime;
        this.imgUrl = imgUrl;
        this.resultList = resultList;
    }

    public Result(Integer id, String url, String platform, Integer type, Integer tortCount, String similarityDegree, String describe, Integer manageId, Integer taskId, Date collectionTime, String imgUrl) {
        this.id = id;
        this.url = url;
        this.platform = platform;
        this.type = type;
        this.tortCount = tortCount;
        this.similarityDegree = similarityDegree;
        this.describe = describe;
        this.manageId = manageId;
        this.taskId = taskId;
        this.collectionTime = collectionTime;
        this.imgUrl = imgUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getTortCount() {
        return tortCount;
    }

    public void setTortCount(Integer tortCount) {
        this.tortCount = tortCount;
    }

    public String getSimilarityDegree() {
        return similarityDegree;
    }

    public void setSimilarityDegree(String similarityDegree) {
        this.similarityDegree = similarityDegree;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getManageId() {
        return manageId;
    }

    public void setManageId(Integer manageId) {
        this.manageId = manageId;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Date getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(Date collectionTime) {
        this.collectionTime = collectionTime;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public List<Result> getResultList() {
        return resultList;
    }

    public void setResultList(List<Result> resultList) {
        this.resultList = resultList;
    }

    @Override
    public String toString() {
        return "Result{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", platform='" + platform + '\'' +
                ", type=" + type +
                ", tortCount=" + tortCount +
                ", similarityDegree='" + similarityDegree + '\'' +
                ", describe='" + describe + '\'' +
                ", manageId=" + manageId +
                ", taskId=" + taskId +
                ", collectionTime='" + collectionTime + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", resultList=" + resultList +
                '}';
    }
}
